<%@page pageEncoding="utf-8" contentType="text/html; charset=utf-8" %>
<%@ include file="/home/include/init_home.jsp" %>
<%

	HashList code100	= CommonUtil.getCodeList("100");	//여행구분
	HashList code007	= CommonUtil.getCodeList("007");	//여행구분
	HashList code118	= CommonUtil.getCodeList("118");	//여행인원
	HashList codeEnjoy	= CommonUtil.getCodeList("enjoy", "");	//선택관광
	HashList codeCar	= CommonUtil.getCodeList("car", "");	//렌터카

	HashMap param = new HashMap();
	param.put("main_yn", "Y");

	HomeDAO dao = new HomeDAO();

	//추천패키지
	HashList packageList 	= dao.selectPackageList(param);
	HashList hotelList 		= dao.selectHotelList(param);
	HashList enjoyList 		= dao.selectEnjoyList(param);

	//호텔 최소가격
	for (int i = 0; i < hotelList.size(); i++) {
		hotelList.put("min_sales_price", i, dao.selectMinPriceList(hotelList.get("hotel_id",i)));
	}

	//게시판
	param.put("word_count", "7");
	param.put("board_id", "100");
	HashList noticeList		= dao.selectWordList(param);	//공지사항
	param.put("board_id", "101");
	HashList qnaList		= dao.selectWordList(param);	//문의사항

	param.put("word_count", "3");
	param.put("board_id", "102");
	HashList postList		= dao.selectWordList(param);	//후기

	//실시간 견적진행
	param.put("end_num", "4");
	HashList reqList		= dao.selectReqList(param);

%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><%= HOME_NAME %></title>
<link href="../css/home.css" rel="stylesheet" type="text/css">
	<link rel="stylesheet" type="text/css" href="/css/smoothness/jquery-ui-1.8.17.custom.css" media="screen" />

<script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="/js/jquery-ui-1.8.18.custom.min.js" charset="utf-8"></script>
<script type="text/javascript" src="/js/jquery.maskedinput-1.3.min.js" charset="utf-8"></script>
<script type="text/javascript" src="/js/jquery.ui.datepicker-ko.js" charset="utf-8"></script>



<script>
	$(document).ready(function() {

		$('#start_dt').mask('9999.99.99').datepicker();

	});

	function fnSaveReq() {
		if (document.reqForm.customer_name.value == "") {
			alert("작성자를 입력해주세요");
			document.reqForm.customer_name.focus();
			return false;
		}
		if (document.reqForm.phone_no.value == "") {
			alert("연락처를 입력해주세요");
			document.reqForm.phone_no.focus();
			return false;
		}
		if (document.reqForm.email_addr.value == "") {
			alert("이메일을 입력해주세요");
			document.reqForm.email_addr.focus();
			return false;
		}
		if (document.reqForm.password.value == "") {
			alert("비밀번호를 입력해주세요");
			document.reqForm.password.focus();
			return false;
		}

		document.reqForm.submit();
	}

	function fnToggleBox(no) {

		if (no == 1) {
			$('#box2, #box3').addClass('hidden');
			$('#boxImg2').attr('src', '../images/main/box_tab_02_off.gif');
			$('#boxImg3').attr('src', '../images/main/box_tab_03_off.gif');
		} else if (no == 2) {
			$('#box1, #box3').addClass('hidden');
			$('#boxImg1').attr('src', '../images/main/box_tab_01_off.gif');
			$('#boxImg3').attr('src', '../images/main/box_tab_03_off.gif');
		} else if (no == 3) {
			$('#box1, #box2').addClass('hidden');
			$('#boxImg1').attr('src', '../images/main/box_tab_01_off.gif');
			$('#boxImg2').attr('src', '../images/main/box_tab_02_off.gif');
		}

		$('#box'+no).removeClass('hidden');
		$('#boxImg'+no).attr('src','../images/main/box_tab_0'+no+'_on.gif');
	}


	function fnTogglePack(no) {

		if (no == 1) {
			$('#pack2, #pack3').addClass('hidden');
			$('#packImg2').attr('src', '../images/main/special_tab_02_off.gif');
			$('#packImg3').attr('src', '../images/main/special_tab_03_off.gif');
		} else if (no == 2) {
			$('#pack1, #pack3').addClass('hidden');
			$('#packImg1').attr('src', '../images/main/special_tab_01_off.gif');
			$('#packImg3').attr('src', '../images/main/special_tab_03_off.gif');
		} else if (no == 3) {
			$('#pack1, #pack2').addClass('hidden');
			$('#packImg1').attr('src', '../images/main/special_tab_01_off.gif');
			$('#packImg2').attr('src', '../images/main/special_tab_02_off.gif');
		}

		$('#pack'+no).removeClass('hidden');
		$('#packImg'+no).attr('src','../images/main/special_tab_0'+no+'_on.gif');
	}

	function fnToggleNotice(no) {
		if (no == 1) {
			$('#notice').removeClass('hidden');
			$('#noticeMore').removeClass('hidden');
			$('#noticeImg').attr('src', '../images/main/notice_title_on.gif');
			$('#qna').addClass('hidden');
			$('#qnaMore').addClass('hidden');
			$('#qnaImg').attr('src', '../images/main/qna_title_off.gif');
		} else if (no == 2) {
			$('#notice').addClass('hidden');
			$('#noticeMore').addClass('hidden');
			$('#noticeImg').attr('src', '../images/main/notice_title_off.gif');
			$('#qna').removeClass('hidden');
			$('#qnaMore').removeClass('hidden');
			$('#qnaImg').attr('src', '../images/main/qna_title_on.gif');
		}
	}
</script>
</head>

<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">

<tr>
    <td height="330" align="center" valign="bottom" class="visual0<%=new java.util.Random().nextInt(8)+1%>"><table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td align="left"><a href="/"><img src="../images/main/logo.png" alt="JoinHawaii" width="257" height="110" /></a></td>
      </tr>
    </table></td>
</tr>
<tr>
  <!--메인 네비 시작-->
    <td height="34" align="center" background="../images/main/navi_bg.gif"><table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
<%	for (int i = 0; i < topMenuList.size(); i++) {
		String onoff = pmenu_id.equals(topMenuList.get("menu_id",i)) ? "on" : "off";
%>
        <td><a href="<%= topMenuList.get("main_path",i) %>" Onfocus='this.blur();'><img src="../images/main/navi_<%= topMenuList.get("menu_id",i) %>_<%=onoff %>.gif" alt="<%= topMenuList.get("menu_name",i) %>" width="125" height="34" onMouseOver="this.src='../images/main/navi_<%= topMenuList.get("menu_id",i) %>_on.gif'" onMouseOut="this.src='../images/main/navi_<%= topMenuList.get("menu_id",i) %>_<%=onoff %>.gif'" border='0'/></a></td>
<%	} %>
      </tr>
    </table></td>
    <!--메인 네비 끝-->
  </tr>


  <tr>
    <td align="center"><table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td height="36" colspan="5"></td>
      </tr>
      <tr>
      <!--견적의뢰박스 시작-->
        <td width="330" height="560" valign="top" bgcolor="#282828">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
				  <tr>
					<td><a href="#nohref" onclick="fnToggleBox(1)" ><img id="boxImg1" src="../images/main/box_tab_01_on.gif" alt="견적의뢰" width="108" height="35" /></a></td>
					<td><a href="#nohref" onclick="fnToggleBox(2)" ><img id="boxImg2" src="../images/main/box_tab_02_off.gif" alt="바로예약" width="111" height="35" /></a></td>
					<td><a href="#nohref" onclick="fnToggleBox(3)" ><img id="boxImg3" src="../images/main/box_tab_03_off.gif" alt="예약확인" width="111" height="35" /></a></td>
				  </tr>
				  <tr id="box1">
				    <td colspan="3">
						<form name="reqForm" method="post" action="./reqSave.do">
						<input type="hidden" name="job_type" value="C"/>
						<input type="hidden" name="req_gubn" value="1"/>
						<input type="hidden" name="req_status" value="1"/>
						  <table width="100%" border="0" cellspacing="0" cellpadding="0">
						  <tr>
							<td height="47" style="padding-left:23px"><img src="../images/main/box_txt.gif" width="236" height="12" /></td>
						  </tr>
						  <tr>
							<td height="2"  align="center"><img src="../images/main/box_line.gif" width="295" height="2" /></td>
						  </tr>
						  <tr valign="top">
							<td align="left" class="est_box">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
								  <colgroup>
								  <col width="80"/>
								  <col />
								  </colgroup>
								  <tr>
								  	<th>출발일</th>
									<td><input type="text" name="start_dt" id="start_dt"  style="width:90px; height:17px; font-size:12px; padding-top:4px; padding-left:4px; text-align:center" /></td>
								  </tr>
								  <tr>
								  	<th>여행일정</th>
									<td>
										<select name="travel_type" style="width:100%">
										<%= StringUtil.makeOption(code007, "") %>
										</select>
								  	</td>
								  </tr>
								  <tr>
								  	<th>여행인원</th>
									<td>
								  		<select name="adult_count" style="width:66px">
										<option value="0">성인</option>
										<%= StringUtil.makeOption(code118, "") %>
										</select>
										<select name="child_count" style="width:66px">
										<option value="0">소아</option>
										<%= StringUtil.makeOption(code118, "") %>
										</select>
										<select name="baby_count" style="width:66px">
										<option value="0">유아</option>
										<%= StringUtil.makeOption(code118, "") %>
										</select>
								  	</td>
								  </tr>
								  <tr>
								  	<th>1인예상금액</th>
									<td><input type="text" name="est_amt" class="est_input" style="width:90px; text-align:right" /> 만원</td>
								  </tr>
								  <tr height="60">
								  	<th>여행종류</th>
									<td>
										<%= StringUtil.makeRadio(code100, "travel_gubn",  "") %>
								  	</td>
								  </tr>
								  <tr>
								  	<th>요청사항</th>
									<td>
										<textarea name="req_info" rows="5" style="width:96%; overflow:auto; padding:4px; margin-bottom:2px" ></textarea>
								  	</td>
								  </tr>
								  <tr>
								  	<th>작성자</th>
									<td><input type="text" name="customer_name" class="est_input"/></td>
								  </tr>
								  <tr>
									<th>연락처</th>
									<td><input type="text" name="phone_no" class="est_input"/></td>
								  </tr>
								  <tr>
								  	<th>이메일</th>
									<td><input type="text" name="email_addr" class="est_input"/></td>
								  </tr>
								  <tr>
									<th>비밀번호</th>
									<td><input type="password" name="password" class="est_input"/></td>
								  </tr>
								  <tr height="60">
									<td></td>
									<td><a href="#nohref" onclick="fnSaveReq()"><img src="../images/main/box_btn.gif" alt="견적요청하기" width="216" height="39" /></a></td>
								  </tr>
								</table>
							</td>
						  </tr>
						  <tr>
							<td height="12" ></td>
						  </tr>
						</table>
						</form>
					</td>
				</tr>
				<tr id="box2" class="hidden">
				    <td colspan="3">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
						  <tr>
							<td height="47" style="padding-left:23px"><img src="../images/main/box_txt.gif" width="236" height="12" /></td>
						  </tr>
						  <tr>
							<td height="2"  align="center"><img src="../images/main/box_line.gif" width="295" height="2" /></td>
						  </tr>
						  <tr valign="top">
							<td align="left" class="est_box">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
								  <colgroup>
								  <col width="80"/>
								  <col />
								  </colgroup>
								  <tr>
								  	<th>선택관광</th>
									<td>
										<select name="enjoy_id" style="width:200px">
										<%= StringUtil.makeOptionByGroup(codeEnjoy, "") %>
										</select>
									</td>
								  </tr>
								  <tr>
								  	<th>여행일정</th>
									<td><input type="text"  class="est_input" style="width:80px; text-align:center" /></td>
								  </tr>
								  <tr>
								  	<th>여행인원</th>
									<td>
								  		<select name="adult_count" style="width:66px">
										<option value="0">성인</option>
										<%= StringUtil.makeOption(code118, "") %>
										</select>
										<select name="child_count" style="width:66px">
										<option value="0">소아</option>
										<%= StringUtil.makeOption(code118, "") %>
										</select>
										<select name="baby_count" style="width:66px">
										<option value="0">유아</option>
										<%= StringUtil.makeOption(code118, "") %>
										</select>
								  	</td>
								  </tr>
								  <tr height="2">
								    <td></td>
									<td><img src="../images/main/box_btn_04.gif" alt="선택관광 추가입력"  /></td>
								  </tr>
								  <tr>
								  	<th>렌터카</th>
									<td>
										<select name="adult_count" style="width:200px">
										<%= StringUtil.makeOption(codeCar, "") %>
										</select>
									</td>
								  </tr>
								  <tr>
								  	<th>여행일정</th>
									<td>
										<input type="text"  class="est_input" style="width:80px; text-align:center" />
										<input type="text"  class="est_input" style="width:80px; text-align:right" /> 일
									</td>
								  </tr>
								  <tr>
								    <td></td>
									<td style="padding-bottom:4px"><img src="../images/main/box_btn_05.gif" alt="렌터카추가입력"  /></td>
								  </tr>
								  <tr>
								  	<th>문의사항</th>
									<td>
										<textarea rows="5" style="width:96%; overflow:auto; padding:4px; margin-bottom:2px" ></textarea>
								  	</td>
								  </tr>
								  <tr>
								  	<th>작성자</th>
									<td><input type="text" class="est_input"/></td>
								  </tr>
								  <tr>
									<th>연락처</th>
									<td><input type="text" class="est_input"/></td>
								  </tr>
								  <tr>
								  	<th>이메일</th>
									<td><input type="text" class="est_input"/></td>
								  </tr>
								  <tr>
									<th>비밀번호</th>
									<td><input type="text" class="est_input"/></td>
								  </tr>
								  <tr height="60">
									<td></td>
									<td><a href="#"><img src="../images/main/box_btn_02.gif" alt="바로예약하기" width="216" height="39" /></a></td>
								  </tr>
								</table>
							</td>
						  </tr>
						  <tr>
							<td height="12" ></td>
						  </tr>
						</table>

					</td>
				</tr>

				<tr id="box3" class="hidden">
				    <td colspan="3">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
						  <tr>
							<td height="47" style="padding-left:23px"><img src="../images/main/box_txt.gif" width="236" height="12" /></td>
						  </tr>
						  <tr>
							<td height="2"  align="center"><img src="../images/main/box_line.gif" width="295" height="2" /></td>
						  </tr>
						  <tr valign="top">
							<td align="left" class="est_box">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
								  <colgroup>
								  <col width="80"/>
								  <col />
								  </colgroup>
								  <tr>
								  	<th>이메일</th>
									<td><input type="text" class="est_input"/></td>
								  </tr>
								  <tr>
									<th>비밀번호</th>
									<td><input type="text" class="est_input"/></td>
								  </tr>
								  <tr height="60">
									<td></td>
									<td><a href="#"><img src="../images/main/box_btn_03.gif" alt="예약확인하기" width="216" height="39" /></a></td>
								  </tr>
								</table>
							</td>
						  </tr>
						  <tr>
							<td height="12" ></td>
						  </tr>
						</table>
					</td>
				</tr>
			  </table>

		</td>
        <!--견적의뢰 박스 끝-->
        <td width="50"></td>
        <td colspan="3" valign="top"><table width="620" border="0" cellspacing="0" cellpadding="0">
          <tr>
          <!--실시간 견적진행사항 시작-->
            <td valign="top">

			  <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="30" align="left" valign="top"><img src="../images/main/special_title.gif" alt="조인하와이 특가상품" width="169" height="19" /></td>
              </tr>
              <tr>
                <td style="background-color:#A6A7AD">
                	<table width="100%" border="0" cellspacing="0" cellpadding="0">
                	<tr>
                		<td align="left"><a href="#nohref" onclick="fnTogglePack(1)"><img id="packImg1" src="../images/main/special_tab_01_on.gif" alt="패키지" width="195" height="28" /></a></td>
	                    <td align="center"><a href="#nohref" onclick="fnTogglePack(2)"><img id="packImg2" src="../images/main/special_tab_02_off.gif" alt="호텔" width="195" height="28" /></a></td>
	                    <td align="right"><a href="#nohref" onclick="fnTogglePack(3)"><img id="packImg3" src="../images/main/special_tab_03_off.gif" alt="선택관광" width="195" height="28" /></a></td>
                	</tr>
                	</table>
                </td>
              </tr>
              <tr>
                <td height="10" align="left" valign="top"></td>
              </tr>
              <tr id="pack1">
                <td height="340px">
                	<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<%	for (int i = 0; i < packageList.size(); i+=3) { %>
	                <tr>
	                <td valign="top" aling="left" style="padding-right:20px">
	                	<a href="./packageDetail.jsp?package_id=<%= packageList.get("package_id",i) %>&package_type=<%=packageList.get("package_type",i)%>&pmenu_id=<%=packageList.get("pmenu_id",i) %>"><img src="<%= packageList.get("img_path_00", i) %>" width="190" height="120" /></a>
	                	<div class="main_txt_b"><a href="./packageDetail.jsp?package_id=<%= packageList.get("package_id",i) %>&package_type=<%=packageList.get("package_type",i)%>&pmenu_id=<%=packageList.get("pmenu_id",i) %>"><%= StringUtil.substring(packageList.get("package_name", i), 14) %></a></div>
	                  	<div class="sub_txt_red">\<%= StringUtil.toPrice(packageList.get("sales_price",i)) %></div>
	                </td>
	                <td valign="top" style="padding-right:20px">
	        <%	if (i+1 < packageList.size()) { %>
						<a href="./packageDetail.jsp?package_id=<%= packageList.get("package_id",i+1) %>&package_type=<%=packageList.get("package_type",i+1)%>&pmenu_id=<%=packageList.get("pmenu_id",i) %>"><img src="<%= packageList.get("img_path_00", i+1) %>" width="190" height="120" /></a>
	                	<div class="main_txt_b"><a href="./packageDetail.jsp?package_id=<%= packageList.get("package_id",i+1) %>&package_type=<%=packageList.get("package_type",i+1)%>&pmenu_id=<%=packageList.get("pmenu_id",i) %>"><%= StringUtil.substring(packageList.get("package_name", i+1), 14) %></a></div>
	                  	<div class="sub_txt_red">\<%= StringUtil.toPrice(packageList.get("sales_price",i+1)) %></div>
	        <%	} %>
					</td>
	                <td valign="top">
	        <%	if (i+2 < packageList.size()) { %>
	                	<a href="./packageDetail.jsp?package_id=<%= packageList.get("package_id",i+2) %>&package_type=<%=packageList.get("package_type",i+2)%>&pmenu_id=<%=packageList.get("pmenu_id",i) %>"><img src="<%= packageList.get("img_path_00", i+2) %>" width="190" height="120" /></a>
	                	<div class="main_txt_b"><a href="./packageDetail.jsp?package_id=<%= packageList.get("package_id",i+2) %>&package_type=<%=packageList.get("package_type",i+2)%>&pmenu_id=<%=packageList.get("pmenu_id",i) %>"><%= StringUtil.substring(packageList.get("package_name", i+2), 14) %></a></div>
	                  	<div class="sub_txt_red">\<%= StringUtil.toPrice(packageList.get("sales_price",i+2)) %></div>
	        <%	} %>
	                </td>
	                </tr>

	                <tr height="10"><td></td></tr>
	 	<%	} %>
	              	</table>
	             </td>
	          </tr>


              <tr id="pack2" class="hidden">
                <td height="340px">
                	<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<%	for (int i = 0; i < hotelList.size(); i+=3) { %>
	                <tr>
	                <td valign="top" aling="left" style="padding-right:20px">
	                	<a href="./hotelDetail.jsp?hotel_id=<%= hotelList.get("hotel_id",i) %>&land_code=<%=hotelList.get("land_code",i)%>&pmenu_id=<%=hotelList.get("pmenu_id",i) %>&menu_id=<%=menu_id %>"><img src="<%= hotelList.get("img_path_00", i) %>" width="190" height="120" /></a>
	                	<div class="main_txt_b"><a href="./hotelDetail.jsp?hotel_id=<%= hotelList.get("hotel_id",i) %>&land_code=<%=hotelList.get("land_code",i)%>&pmenu_id=<%=hotelList.get("pmenu_id",i) %>&menu_id=<%=menu_id %>"><%= StringUtil.substring(hotelList.get("hotel_kor_name", i), 14) %></a></div>
	                  	<div class="sub_txt_red">$<%= StringUtil.toPrice(hotelList.get("min_sales_price",i)) %>~</div>
	                </td>
	                <td valign="top" style="padding-right:20px">
	        <%	if (i+1 < hotelList.size()) { %>
						<a href="./hotelDetail.jsp?hotel_id=<%= hotelList.get("hotel_id",i+1) %>&land_code=<%=hotelList.get("land_code",i+1)%>&pmenu_id=<%=hotelList.get("pmenu_id",i) %>&menu_id=<%=menu_id %>"><img src="<%= hotelList.get("img_path_00", i+1) %>" width="190" height="120" /></a>
	                	<div class="main_txt_b"><a href="./hotelDetail.jsp?hotel_id=<%= hotelList.get("hotel_id",i+1) %>&land_code=<%=hotelList.get("land_code",i+1)%>&pmenu_id=<%=hotelList.get("pmenu_id",i) %>&menu_id=<%=menu_id %>"><%= StringUtil.substring(hotelList.get("hotel_kor_name", i+1), 14) %></a></div>
	                  	<div class="sub_txt_red">$<%= StringUtil.toPrice(hotelList.get("min_sales_price",i+1)) %>~</div>
	        <%	} %>
					</td>
	                <td valign="top">
	        <%	if (i+2 < hotelList.size()) { %>
	                	<a href="./hotelDetail.jsp?hotel_id=<%= hotelList.get("hotel_id",i+2) %>&land_code=<%=hotelList.get("land_code",i+2)%>&pmenu_id=<%=hotelList.get("pmenu_id",i) %>&menu_id=<%=menu_id %>"><img src="<%= hotelList.get("img_path_00", i+2) %>" width="190" height="120" /></a>
	                	<div class="main_txt_b"><a href="./hotelDetail.jsp?hotel_id=<%= hotelList.get("hotel_id",i+2) %>&land_code=<%=hotelList.get("land_code",i+2)%>&pmenu_id=<%=hotelList.get("pmenu_id",i) %>&menu_id=<%=menu_id %>"><%= StringUtil.substring(hotelList.get("hotel_kor_name", i+2), 14) %></a></div>
	                  	<div class="sub_txt_red">$<%= StringUtil.toPrice(hotelList.get("min_sales_price",i+2)) %>~</div>
	        <%	} %>
	                </td>
	                </tr>

	                <tr height="10"><td></td></tr>
	 	<%	} %>
	              	</table>
	             </td>
	          </tr>


              <tr id="pack3" class="hidden">
                <td height="340px">
                	<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<%	for (int i = 0; i < enjoyList.size(); i+=3) { %>
	                <tr>
	                <td valign="top" aling="left" style="padding-right:20px">
	                	<a href="./optionDetail.jsp?enjoy_id=<%= enjoyList.get("enjoy_id",i) %>&pmenu_id=<%= enjoyList.get("pmenu_id",i) %>"><img src="<%= enjoyList.get("img_path_00", i) %>" width="190" height="120" /></a>
	                	<div class="main_txt_b"><a href="./optionDetail.jsp?enjoy_id=<%= enjoyList.get("enjoy_id",i) %>&pmenu_id=<%= enjoyList.get("pmenu_id",i) %>"><%= StringUtil.substring(enjoyList.get("enjoy_name", i), 14) %></a></div>
	                  	<!-- <div class="sub_txt_red">\<%= StringUtil.toPrice(enjoyList.get("sales_price",i)) %></div> -->
	                </td>
	                <td valign="top" style="padding-right:20px">
	        <%	if (i+1 < enjoyList.size()) { %>
						<a href="./optionDetail.jsp?enjoy_id=<%= enjoyList.get("enjoy_id",i+1) %>&pmenu_id=<%= enjoyList.get("pmenu_id",i) %>"><img src="<%= enjoyList.get("img_path_00", i+1) %>" width="190" height="120" /></a>
	                	<div class="main_txt_b"><a href="./optionDetail.jsp?enjoy_id=<%= enjoyList.get("enjoy_id",i+1) %>&pmenu_id=<%= enjoyList.get("pmenu_id",i) %>"><%= StringUtil.substring(enjoyList.get("enjoy_name", i+1), 14) %></a></div>
	                  	<!-- <div class="sub_txt_red">\<%= StringUtil.toPrice(enjoyList.get("sales_price",i+1)) %></div> -->
	        <%	} %>
					</td>
	                <td valign="top">
	        <%	if (i+2 < enjoyList.size()) { %>
	                	<a href="./optionDetail.jsp?enjoy_id=<%= enjoyList.get("enjoy_id",i+2) %>&pmenu_id=<%= enjoyList.get("pmenu_id",i) %>"><img src="<%= enjoyList.get("img_path_00", i+2) %>" width="190" height="120" /></a>
	                	<div class="main_txt_b"><a href="./optionDetail.jsp?enjoy_id=<%= enjoyList.get("enjoy_id",i+2) %>&pmenu_id=<%= enjoyList.get("pmenu_id",i) %>"><%= StringUtil.substring(enjoyList.get("enjoy_name", i+2), 14) %></a></div>
	                  	<!-- <div class="sub_txt_red">\<%= StringUtil.toPrice(enjoyList.get("sales_price",i+2)) %></div> -->
	        <%	} %>
	                </td>
	                </tr>

	                <tr height="10"><td></td></tr>
	 	<%	} %>
	              	</table>
	             </td>
	          </tr>
	          </table>

            </td>
        <!--실시간 견적진행사항 끝-->
          </tr>
			<tr height="10"><td></td></tr>
          <tr>
          <!--조인하와이 특가상품 시작-->
            <td>


            <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="35"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td align="left"><img src="../images/main/realtime_title.gif" alt="실시간 견적진행사항" width="167" height="19" /></td>
                <td align="right" style="padding-right:22px"><a href="./reqList.jsp?pmenu_id=09&menu_id=32"><img src="../images/main/more.gif" alt="more" width="32" height="9" /></a></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td height="31" background="../images/main/realtime_bg.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="98" align="center"><img src="../images/main/realtime_txt_01.gif" alt="희망출발일"  /></td>
                <td width="1"><img src="../images/main/realtime_line.gif" width="1" height="10" /></td>
                <td width="78" align="center"><img src="../images/main/realtime_txt_02.gif" alt="작성자"/></td>
                <td width="1"><img src="../images/main/realtime_line.gif" width="1" height="10" /></td>
                <td width="180" align="center"><img src="../images/main/realtime_txt_03.gif" alt="여행일정"  /></td>
                <td width="1"><img src="../images/main/realtime_line.gif" width="1" height="10" /></td>
                <td width="100" align="center"><img src="../images/main/realtime_txt_04.gif" alt="1인예산" /></td>
                <td width="1"><img src="../images/main/realtime_line.gif" width="1" height="10" /></td>
                <td width="94" align="center"><img src="../images/main/realtime_txt_05.gif" alt="견적일"  /></td>
                <td width="1"><img src="../images/main/realtime_line.gif" width="1" height="10" /></td>
                <td width="88" align="center"><img src="../images/main/realtime_txt_06.gif" alt="처리결과"  /></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td height="30" valign="bottom">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <%	for (int i = 0; i < reqList.size(); i++) { %>
              <tr>
                <td width="99" height="28" align="center"><%= StringUtil.toDate(reqList.get("start_dt",i)) %></td>
                <td width="79" align="center"><%= reqList.get("customer_name",i) %></td>
                <td width="180" align="center"><%= reqList.get("travel_type_name",i) %></td>
                <td width="80" align="center"><%= reqList.get("est_amt",i) %>만원</td>
                <td width="95" align="center">2013-06-01</td>
               <%	if ("2".equals(reqList.get("req_status",i))) { %>
               	<td align="center"><img src="../images/main/realtime_complete.gif"  height="18" /></td>
               	<%	} else { %>
               	<td align="center"><img src="../images/main/realtime_wait.gif" height="18" /></td>
                <%	} %>

              </tr>
              <tr><td colspan="6" height="1" bgcolor="#e4e4e4"></td></tr>
     <%		} %>
            </table>
            </td>
          </tr>
        </table>



            </td>
            <!--조인하와이 특가상품 끝-->
          </tr>
        </table></td>
      </tr>
      <tr>
        <td height="43" colspan="5"></td>
      </tr>
      <tr>
        <td width="330"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="150">
            	<a href="/home/pageView.jsp?page_id=7&pmenu_id=09&menu_id=27"><img src="../images/main/info_img_01.gif" alt="하와이 현지 데스크안내" width="150" height="238" /></a></td>
            <td width="8"></td>
            <td>
            	<a href="/home/pageView.jsp?page_id=7&pmenu_id=09&menu_id=27"><img src="../images/main/info_img_02.gif" alt="한국 사무소 안내" width="172" height="238" /></a></td>
          </tr>
        </table></td>
        <td width="50"></td>
        <!--여행후기 게시판 시작-->
        <td width="297" valign="top"><table width="297" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="27"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="18"></td>
                <td width="54"><img src="../images/main/review_title.gif" alt="여행후기" width="54" height="13" /></td>
                <td>&nbsp;</td>
                <td width="32"><a href="/home/boardList.jsp?board_id=102&pmenu_id=08&menu_id=21"><img src="../images/main/more.gif" alt="more" width="32" height="9" /></a></td>
                <td width="11"></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td><img src="../images/main/review_line.gif" width="297" height="3" hspace="3" /></td>
          </tr>
          <tr>
            <td height="71"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="10"></td>
                <td valign="top" class="review_in" align="left">
					<p class="review"><a href="/home/boardView.jsp?word_id=<%=postList.get("word_id",0) %>&board_id=<%=postList.get("board_id",0) %>&pmenu_id=<%=postList.get("pmenu_id",0) %>&menu_id=21"><%= StringUtil.substring(postList.get("subject", 0),20) %></a></p>
					<p><a style="font-weight:normal" href="/home/boardView.jsp?word_id=<%=postList.get("word_id",0) %>&board_id=<%=postList.get("board_id",0) %>&pmenu_id=<%=postList.get("pmenu_id",0) %>&menu_id=21"><%= StringUtil.substring(StringUtil.noHTML(postList.get("content", 0)),52) %></a></p>
				</td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td height="1" bgcolor="#e4e4e4"></td>
          </tr>
          <tr>
            <td height="64"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="10"></td>
                <td valign="top" class="review_in" align="left">
					<p class="review"><a href="/home/boardView.jsp?word_id=<%=postList.get("word_id",1) %>&board_id=<%=postList.get("board_id",1) %>&pmenu_id=<%=postList.get("pmenu_id",1) %>&menu_id=21"><%= StringUtil.substring(postList.get("subject", 1),20) %></a></p>
					<p><a style="font-weight:normal" href="/home/boardView.jsp?word_id=<%=postList.get("word_id",1) %>&board_id=<%=postList.get("board_id",1) %>&pmenu_id=<%=postList.get("pmenu_id",1) %>&menu_id=21"><%= StringUtil.substring(StringUtil.noHTML(postList.get("content", 1)),52) %></a></p>
				</td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td height="1" bgcolor="#e4e4e4"></td>
          </tr>
          <tr>
            <td height="64"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="10"></td>
                <td valign="top" class="review_in" align="left">
					<p class="review"><a href="/home/boardView.jsp?word_id=<%=postList.get("word_id",2) %>&board_id=<%=postList.get("board_id",2) %>&pmenu_id=<%=postList.get("pmenu_id",2) %>&menu_id=21"><%= StringUtil.substring(postList.get("subject", 2),20) %></a></p>
					<p><a style="font-weight:normal" href="/home/boardView.jsp?word_id=<%=postList.get("word_id",2) %>&board_id=<%=postList.get("board_id",2) %>&pmenu_id=<%=postList.get("pmenu_id",2) %>&menu_id=21"><%= StringUtil.substring(StringUtil.noHTML(postList.get("content", 2)),52) %></a></p>
				</td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td height="1" bgcolor="#e4e4e4"></td>
          </tr>
        </table></td>
        <!--여행후기 게시판 끝-->
        <td width="37"></td>
        <!--공지사항 게시판 시작-->
        <td width="286" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="30" background="../images/main/notice_bg.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="92"><a href="#nohref" onclick="fnToggleNotice(1)" ><img id="noticeImg" src="../images/main/notice_title_on.gif" alt="공지사항" width="92" height="30" /></td>
                <td width="92"><a href="#nohref" onclick="fnToggleNotice(2)" ><img id="qnaImg" src="../images/main/qna_title_off.gif" alt="문의사항" width="92" height="30" /></td>
                <td id="noticeMore" align="right" style="padding-right:10px"><a href="/home/boardList.jsp?board_id=100&pmenu_id=08&menu_id=19"><img src="../images/main/more.gif" alt="more" width="32" height="9" /></a></td>
                <td id="qnaMore" class="hidden" align="right" style="padding-right:10px"><a href="/home/boardList.jsp?board_id=101&pmenu_id=08&menu_id=20"><img src="../images/main/more.gif" alt="more" width="32" height="9" /></a></td>
              </tr>
            </table></td>
          </tr>
          <tr id="notice">
            <td>

          				<table width="100%" border="0" cellspacing="0" cellpadding="0">
          				  <tr height="5"><td></td></tr>
		<%		for (int i = 0; i < noticeList.size(); i++) { %>
			              <tr height="27">
			                <td width="20" align="center" valign="middle"><img src="../images/main/notice_bullet.gif" width="3" height="3" /></td>
			                <td class="board_subject"><a href="/home/boardView.jsp?word_id=<%=noticeList.get("word_id",i) %>&board_id=<%=noticeList.get("board_id",i) %>&pmenu_id=<%=noticeList.get("pmenu_id",i) %>&menu_id=19"><%= StringUtil.substring(noticeList.get("subject",i),16) %></a></td>
			                <td width="50" class="notice"><%= noticeList.get("init_date",i) %></td>
			              </tr>
				          <tr height="1">
				            <td colspan="3" bgcolor="#e4e4e4"></td>
				          </tr>
			<%		} %>
						</table>

            </td>
          </tr>
          <tr id="qna" class="hidden">
            <td>

          				<table width="100%" border="0" cellspacing="0" cellpadding="0">
          				  <tr height="5"><td></td></tr>
		<%		for (int i = 0; i < qnaList.size(); i++) { %>
			              <tr height="27">
			                <td width="20" align="center" valign="middle"><img src="../images/main/notice_bullet.gif" width="3" height="3" /></td>
			                <td class="board_subject"><a href="/home/boardView.jsp?word_id=<%=qnaList.get("word_id",i) %>&board_id=<%=qnaList.get("board_id",i) %>&pmenu_id=<%=qnaList.get("pmenu_id",i) %>&menu_id=20"><%= StringUtil.substring(qnaList.get("subject",i),16) %></a></td>
			                <td width="50" class="notice"><%= qnaList.get("init_date",i) %></td>
			              </tr>
				          <tr height="1">
				            <td colspan="3" bgcolor="#e4e4e4"></td>
				          </tr>
			<%		} %>
						</table>

            </td>
          </tr>

        </table></td>
        <!--공지사항 게시판 끝-->
      </tr>
      <tr>
        <td height="46" colspan="5"></td>
      </tr>
    </table></td>
  </tr>
  <%@ include file="/home/include/footer.jsp" %>
</table>
</body>
</html>
